﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            webBrowser1.ScriptErrorsSuppressed = true;
            webBrowser1.Navigate("D:/File/1128_第1套_61_13.html");
        }

        private void button2_Click(object sender, EventArgs e)
        {
          //  webBrowser1.Document.InvokeScript("GetSingleRdoOptions");
            HtmlElement element = webBrowser1.Document.GetElementById("testType_K408");
            HtmlElementCollection collection = element.GetElementsByTagName("input");
            foreach (HtmlElement htmlElement in collection)
            {
                if (htmlElement.GetAttribute("type") == "hidden")
                {
                    string answer = htmlElement.GetAttribute("value");
                    MessageBox.Show(answer);
                }
            }
           
           
        }
    }
}
